How to convert 4 plane points into a 3-dimensional rectangular plane?

I want to select 4 x, y coordinate points on the screen, and then generate a 3d rectangle offset relative to the camera through threeJS, how can I achieve this, thank you

There’s an infinite number of solutions to your quest. Because there’s an infinite number of parallel planes along the same sub-frustum that would cover the same screen rectangle.