It's already a complex thing to switch between both "views", taking into account if the widget is docked or not etc... but it should be possible to also save/restore the splitter's relative sizes in both situations (when the widget is docked).

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]