This is useful in combination of non-modal TabBox through DBus and window-strip layout. With DBus the non-modal TabBox can be started and selecting any item on the strip will end TabBox again.
Model exposes a method to close a window by index which is invoked by the window strip QML.
Needed by window strip to not add a close button to non-closeable windows such as the desktop shell.