Can now track window parent window changes. Added tests.
There are still some links from core to window but its now separate enough to fix PanelWindow in qml tooling.