Drawing a straight line by dragging it

I have a widget with 4 “draggable” points. When you start dragging one of them, the game has to draw a straight line from the starting point to your mouse.
I have already tried to override “On Drag Detected” as it was said in the UE docs. The main problem for me is that I can’t always track the mouse position to pass its coordinates to the “Draw Line” node.


My blueprint (Everything that wasn’t shown is for detecting when the mouse is in one of the points.)
What should I use to make it work?