How to get Viewport?

I’m working on a editor script where I need to move viewport camera on currently active level in PIE (when you detach camera from the player). SetLevelViewportCameraInfo seems not to work in PIE. I found SetViewLocation but it requires a Viewport object - I can’t find anything that would provide such an object. How do I get it?

I tried to solve the same problem, but I can’t find any pure python solution. Then I wrap those into my EditorLib:

set_level_viewport_camera_info - PythonBPLib