SystemDialog: use `Qt.WindowCloseButtonHint` flag to add close button to decoration
According to the source code in qxcbwindow.cpp, WM_TRANSIENT_FOR will only be set when a window belongs to certain types. When focus stealing prevention is enabled, KWin tries to match transient window, and it will block window activation when WM_TRANSIENT_FOR is not set. So use requestActivate to manually bring the dialog to front.
See also https://codereview.qt-project.org/c/qt/qtbase/+/448355
BUG: 462061 FIXED-IN: 5.27
Edited by Fushan Wen