Reposition navigation gizmo
There may be an way to do it with BPY code that I am unaware of.
On the other hand, you can toggle the viewport 3D gizmo visibility by clicking the arrow icon in the screenshot, then clicking the option Navigate.
There is also the shortcut CTRL + ~ to toggle the gizmo visibility.