How to rotate object with mouse movements

I need to make a rotator functionality in my project. What I am to do is just like in the editor: when the user selects an object a widget like the one in the editor pops up letting the user rotate the object along the given axis.

To clarify, when I speak of the editor widget I mean this:

https://docs.unrealengine.com/latest/images/Engine/Actors/Transform/Transform_Rotate_Axis.jpg

I would like to mirror exactly that. I don’t know how to implement it though, any help would be appreciated (either with C++ or Blueprint)!

Actually, is there a way to use the same editor widget at runtime? It would be the best option for me!

Did you manage to do this? i’m facing the same problem.

No, in the end it turned out that I didn’t need to do that, so I stopped trying