I’m making a node-based editor for a plugin and I need to get the position of the 'connector dot ’ inside the node to create a line to show that two nodes are connected.

The problem is, when I try to get the position of the connector dot, it gives me its position relative to the node. I need it’s position relative to the whole screen in scale. How would I achieve this?