The right way is to design your dialogs such that they fit into the minimum screen resolution that the OS runs at. Some of the Windows ones are optimized for 640x480 because that's what the basic VGA driver runs at. If I remember correctly, macOS requires either 800x600 or 1024x768.