After opening a dialog, you can still interact with the window behind, even opening additional dialogs which then stack.
A semitransparent overlay would catch these stray clicksmain window controls (not content), and should look pretty nicesuch as opening additional dialogs which then stack.