How to put an object on top of the mouse cursor and hide it?

The title …

Thanks for helping as always …

Hide the pointer then set the position of the object to follow the pointer.
Just shared an example, you can find it at the bottom:

custom mouse pointer that is.

Awesome thank a lot … didn’t know there was a Hide cursor event