Does this operator exist?

Open any screen space (graph editor, dopesheet, 3dview) directly in a new window.

I know you can switch a screen space to what you want and then duplicate it into a new window, but I was looking to tie this to an hotkey.


Apparently not, but I was able to solve it with a small workaround.

current = context.space_data.type
bpy.ops.wm.context_set_enum(data_path=“area.type”, value=“GRAPH_EDITOR”)
bpy.ops.wm.context_set_enum(data_path=“area.type”, value=current )