This is an addon for Blender that can rotate HDR texture in 3D viewport by drag cursor.
In 3D viewport (both renderd or material preview mode), Shift Right-Click on non objects, you can rotate the enviroment texture to preview shaders and lighting more practical and faster.
When dragging on objects, Blender behaves as before that moves 3D cursor
You can install this addon through Blender extension market at https://extensions.blender.org/add-ons/hdr-rotation/
Or manually install from disk like addons before 4.2