Don't manually unminimize window before showing close confirmation dialog
Somwhat ironically removing this fixes the main window appearing together with the confirmation dialog when the window is closed while minimized
Somwhat ironically removing this fixes the main window appearing together with the confirmation dialog when the window is closed while minimized