window: Show the close button on the sidebar
This allows showing the close button on the sidebar when the window is folded, but not when it's not.
This allows showing the close button on the sidebar when the window is folded, but not when it's not.