Draw element on top of a node with GP module

As discussed in a similar topic, the issue is with the OS scale.

Solutions is to find the scale of the OS and to multiply all the coordinates by that scale:

 system = bpy.context.preferences.system
 ui_scale = system.ui_scale
2 Likes