Click Dimensions in Annotations toolbar.
Select the edge as shown on the part.
Right-click the dimension and select Dimension.1 object > Dimension Representation > Force Horizontal Dimension in View from the contextual menu.
Right-click the dimension and select Dimension.1 object > Dimension Representation > Force Vertical Dimension in view from the contextual menu.
Right-click the dimension and select Dimension.1 object > Dimension Representation > Force Dimension on Element from the contextual menu.
Click outside any geometry to end the dimension creation process, move the dimension if needed.