How to create sidebar?

Sorry @Everynone !
Do you see my video result?
I think my question is "I create a new user widget and want to arrive the same result in my video when I click this button.

That button is created in the “wPanel” user interface, so it can directly toggle Panel Extension.
But when I create a new user interface, it can not user the toggle Panel Extension.