/Engine/Source/Editor/ViewportInteraction/Public/ViewportWorldInteraction.h
Returns whether the transform gizmo is actually visible right now. This is different than whether it 'should' be visible, as the gizmo can be implicitly hidden if there are no selected objects, for example.
bool IsTransformGizmoVisible() const