The Strokes dialog allow you to add a line along the path of any selection. For example, use the rectangular selection tool to select a rectangle and then:
Select Strokes from the Edit menu
Use Width to set the line thickness in pixels
Set the blending mode and opacity
Select Outside to draw the line on the outside edge of the selection, Center to center is around the selection and Inside to draw the line on the inside edge of the selection.