EditorInterface.get_editor_viewport()
This closes https://github.com/godotengine/godot-docs/issues/1109.