There are still some links from core to window but its now separate enough to fix PanelWindow in qml tooling.
Fixes an occasional crash with QWaylandWindow::surface() returning null.