Converts device coordinates to world coordinates on mouse click