window:get_workspace()

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

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