How to save/restore viewport layouts between sessions

We would like to save and restore the complete layout of a Rhino document (docked viewports, floating viewports, location and size of these, optionally camera settings, etc.).

This means that a user can store their favorite layout and run a command to restore it, for example after receiving a file from a co-worker that has a different layout.

Any hints are welcome - can this already be done by default Rhino? Can I do this with RhinoCommon? Or with C++?

Thanks!!!

I have no doubt you can do this in C++, not so sure about .NET…