This is what I'd like to do: make a dialog, with a button; on press of the button:
- if the playlist window is not shown, first: save original docking state, check if playlist is docked, if it is, undock it - then show playlist (the same as View / Playlist (Ctrl-L)
- if the playlist window is shown, then hide it, and finally restore original docking state
Is this possible to do with the Lua extension API for VLC? If so, what commands can I use (or alternately, what examples could I consult?)