Is it possible to set the dockable status of the Immediate Window programically using VBA?

Not just toggle, but actively setting the dockable status on or off?

Currently I'm doing it using 'SendKeys' but would prefer to avoid 'SendKeys'.