Preparation for changing QWindow::windowState to visibility