Following your dynamic dock example, i see there is an issue with closing dynamic docks.
When obtaining the GetRegisteredDocksState(), all closed (removed from dock zones) docks are still showing up as being registered to the dock zone. Is this by design ? or does the DockCloseCommand() not automatically un-register these closed docks ?
Thanks