On Mac OS, it is really annoying when the UI freezes without apparent reason. This happens because the dialogue freezes the UI. However, on a Macbook with two additional displays, even though the main UI window is on an attached display, the dialogue always appears on the Macbook display. When the Macbook is off to the side and out of the standard field of view, the problem is not readily apparent.
Is it impossible to check with the display the main window is on and present the dialogue on this display instead?
As someone who taught UI design in the 90s, I am sure I taught my students this principle.