The idea here is to click a button and produce another window which will be a detachable window.
If you replace ApplicationWindow with Window in
ApplicationWindow
Window