How can I UV unwrap a mesh based on its 3D perspective in the viewport?
Enter edit mode
Select the face that you want to be unwrapped
Press U then choose "Project From View"
Note : "Project From View (Bounds)" will fit the UV to the texture space like the image down below