Script to attach panel to mouse cursor

Hi guys!
I saw an addon in the marketplace that have this feature and wondered how to achieve this thing in python.
I think essentially it’s a panel attached to the mouse cursor and follows it every move but I can’t figure out how to do something like this.

blf, gpu, and a modal operator. See the “operator_modal_draw.py” template in the text editor.