For calculating the 2D click position within the panel you'll need the 3D position of the mouse hit point. The mouse event does not give you the hit point, but you could use c_trace instead.