Using the Rectangle tool

Select this tool and then click to specify the location of one corner of the rectangle. Drag to stretch the rectangle and specify the opposite corner and then click to finish drawing.