If you hide a DocumentWindow and save the layout, the loaded layout shows the DocumentWindow, but it actually should keep it hidden. Same behavior is valid for ToolWindow.