Say you're given a 3x4 projection matrix P, and projected points on the 2D plane. And you also know, for a given T, 3D points of the rectangle can be represented as T+X1, T+X2 etc.
Now, knowing that every point in the projected 2D plane maps to a single line in the 3D space, it's obvious that we can't recover position a single vertex in 3D space. But, since in this case we know the relations between each vertex, I think we should be able to. But I don't know how to actually do it.
For now, assume the rectangle is parallel to the 2D projection plane, it's obvious that there's only one rectangle in 3D space that correspons to the projected rectangle. Since as the lines diverge, dimensions of the rectangle change. And this is just the case where z (in-plane) components of X1, X2 .. X4 are 0. So I assume any arbitrary configuration won't be much different.
Edit:
I tried to pick a T such that $$ T = A_0 + Null(P) * t $$Where A0 is a particular soln for point y0. And then I formed 3 equations for other points such that T calculated with given t, would satisfy other points as well. $$ Mi = P [I;0, Xi;1] [I;0, X0;1]^{-1} $$ $$ M Nul(P) t = y_i-M A0 $$ The interesting thing is that, equations by themselves are still underdetermined because M is of 3x4. But solutions of the equations form an overdetermined system. Which makes sense as your X1, ... X4 values may not actually form a trapezoid which can then be project onto 2D plane as a rectangle.
So for now, any numerical soln. I tried for the eq. above worked fine. But I'd be glad to find a more rigid and mathematical way of doing this.
Here's my attempt to solve this problem / draft solution:
(getting the actual values via this solution approach seems quite difficult, given all the equation solving required -- so that part is left as excersize for the reader -- maybe there's easier way to get a solution?)