if there is a rendercontrol, watch the target window
on QQuickWidget we need to watch the proper final window