How to pick a point on a plane with the mouse

I want to pick a point on a plane through viewer.scene.pickPosition, but I can’t get it, and the result obtained through plane.projectPointOntoPlane is also different from the actual one.