Drop perpendicular lines from the point P to the sides of the rectangle, meeting sides AB, BC, CD, and AD at points W, X, Y and Z respectively, as shown in the figure.
Construct perpendiculars from point P to the edges of the rectangle, where they meet AB, BC, CD, and AD at points W, X, Y, and Z, as illustrated in the diagram.