Using the Perspective Tool

To flip and rotate your selection, see Flipping a Selection and Rotating a Selection 90 Degrees.