I've got docksite serialization working, with one exception: any ToolWindow that's docked to the "documents" area (aka that has state=document) is not restored by layoutSerializer.LoadFromString. Example:
1) Start the app, giving a new/default layout
2) Drag one of the ToolWindows to the "main" document area (and perform any other manipulations of other ToolWindows - resizing, pinning, unpinning, etc)
3) Quit. Looking at the serialized layout file on disk, it reveals that that window shows isOpen="false" even though it was open:
<ToolWindow UniqueId="63909904-2834-4c05-a216-3edb81b4a079" SerializationId="Options" ContainerDockedSize="232.4,497.2" IsOpen="false" LastActiveDateTime="2019-06-30T18:05:03.3790026-07:00" State="Document" />
4) Re-launch the app. All ToolWindows are restored, except for the one that was in the main document area.
Furthermore, if I manually change IsOpen="true" in the xml, re-launch, & re-quit...it has again changed it back to false (even though I did nothing in the UI, and it didn't show up when I launched).
Why does it keep resetting any ToolWindows with State=Document to IsOpen=false?