I’m building different tools with their own UIs, and most of them use dockable windows using:
class DockableWindow(MayaQWidgetDockableMixin, QtWidgets.QMainWindow) class. Here’s a bit outdated but mostly still relevant gist of what I use: Maya - Creating PySide windows in Maya 2014-2018+, with docking · GitHub
I just realized that I can very conveniently open different tools and stack them together, not just to Maya’s main window. Naturally it’s would be great if one could just re-open the whole stack of tools and not go through openning each one and docking it again.
So what ways are there to remember state of custom dockable UI windows in Maya? Any pointers?