[Dialog] Apply window type after changing flags
Changing flags might override the window type, ensure we set it back properly
Differential Revision: https://phabricator.kde.org/D22569