Hm… this is really bad design in my opinion. If there is a button to open a sidebar, there must also be a button to close it.
It is incomprehensible that the same principle - opening/closing - has to be carried out in two completely different ways (and in such a fiddly way as searching for the handle with the mouse cursor on the edge of the sidebar). This is completely counterintuitive.