Adds support for disabling detachment of the window.