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
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