window: add sidebar toggle button to sidebar
Add a toggle button to the sidebar when the window is collapsed. This way the sidebar can be hidden by clicking in the same spot that it was revealed from. It also allows hiding the sidebar it fully overlaps.
Fixes #3133 (moved)
Edited by Peter Eisenmann