window:set_workspace("something")

{{since('20220624-141144-bd1b7c5d')}}

Changes the name of the workspace to which the window belongs.