Panel: fix actions and shortcuts to toggle their visibility
This regressed compared to Qt5.
https://doc.qt.io/qt-6/qdockwidget.html#toggleViewAction
Note: The action can not be used to programmatically show or hide the dock widget. Use the visible property for that.
Despite this, in Qt5 createPanelAction
somehow worked.