Modal dialogs, sometimes loosely called popups, can feel disconnected from the rest of your application. Adding the icon from your product logo to the header ties the dialog back to your branding.
It's a small detail, but one that makes your application feel more polished and consistent.
❌ Figure: Bad example - The dialog could belong to any application
Figure: The product icon immediately identifies the dialog as part of your application