I’m not sure what your actual problem is. Did you want the mouse to be reset to where it was before pressing right click or did you want it to appear in the location you moved it to while it was invisible?
If you want to set it to the previous location you could do something like the following:
