If you are prompted with The Dock Manager is not yet intialized. Call the DockManager.ForceInitialize method prior to changing panel visibility states you can resolve this error in a few simple steps.
1) Select Window
2) Select Reset Windows
3) When prompted for confirmation to reset your windows select Yes.
If any other support is needed please feel free to reach out to the Helpdesk support team.