thanks skp77! Now it makes sense
I'll use this for all scripts that have UI for REAPER5
it still doesn't remember in which dock is docked to.
maybe this can help.
I'm trying with
EEL: Dock_UpdateDockID("ident_str", int whichDock)
but not having luck.
I think we need to store the dock id too. gfx_dock second byte?
as it is in documentation.
EEL: gfx_dock(v)
Call with v=-1 to query docked state, otherwise v>=0 to set docked state. State is &1 if docked, second byte is docker index (or last docker index if undocked).