TestRecorder: Allow native platform to process activateWindow
QWidget::activateWindow() schedules a request on the native windowing system's event queue. This change allows the request to be processed before the test recorder dialog queries the active window.