window:get_workspace()

Since: 20220624-141144-bd1b7c5d

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