Hi Kari;
You can not change a Window class type vie PowerScript at runtime, only in the Window Painter before you save the Window Class to your PBL.
Again, check out the link to the great example PB 12.6 provides and study how it works & uses the new Open commands for dockable Windows.
Regards ... Chris