I've been looking into this project for @Kojack , to support the 3Dconnexion 3D mice, like the SpaceMouse and SpaceNavigator in Godot. For those that don't know, this is a mouse that supports 6DOF (rotation and translation) and makes it very easy to move the camera and position objects in 3D space.
I think I figured it out, but it's a little harder than I initially thought. It might take me about a week to get working. The basic idea is that you make an EditorPlugin. See here:
https://docs.godotengine.org/en/3.4/tutorials/plugins/editor/making_main_screen_plugins.html
You'll also need a GDNative plugin to access the native shared libraries for the mouse:
https://docs.godotengine.org/en/stable/tutorials/scripting/gdnative/index.html
Then you can get access to the editor interface windows with EditorInterface:
https://docs.godotengine.org/en/stable/classes/class_editorinterface.html
From there you would use get_editor_viewport() to get the viewport, and then search through that to find the camera.
I still need at least a couple days to get a prototype together, but I have some of the pieces working on their own with command line apps. So maybe like a week to get it working. Will be fun to try this with my stereo 3D plug-in.