Mouse Position scaled by DPI

What is the functionality happend behind in the both nodes

314022-mou.png

As i know the above node will give X and Y Position. But how the below node is working

I just want to undestand math behind that Scaled by dpi

314023-mou.png

And i also want to implement same functionality for the below node how can i do it

The official page:

says this node is:

MousePositionScaledByDPI = MousePosition * (1 / ViewportScale)

but also says as of 4.17 use GetMousePositionOnViewport()

Yes i tried like this

Can you please say me any solution for this

I am trying for never ending scroll items which will be looping with scroll animation