Available in: Sketch

Sketch a rectangle starting with a line and ending with the perpendicular distance of the aligned side.

See the Learning center course Introduction to Sketching (Onshape account required) for more information.