Tool Path view and mouse cursor position

let's imagine that we have any part for plasma cutting. This is XY only coordinates.
Is it possible to have a function that will return the position in the machine coordinates where the operator make click on the ToolPath viewer?
In this case we can easy calculate nearest point on the trajectory and move to this position.
Is it possible to have a function that will return the position in the machine coordinates where the operator make click on the ToolPath viewer?
In this case we can easy calculate nearest point on the trajectory and move to this position.