Port sidebar to QDockWidget
With this MR, the sidebar can now be (if not locked):
- docked to the left or right side
- undocked and floated as an independent window
- closed with the close button in the header
With this MR, the sidebar can now be (if not locked):