Use the Border modifier to draw a border of a specified width around a layer’s frame. It comes with two parameters that you can customize: Color and Width.
By default, the border appears inside the bounds of the layer. For example, you can place a 10-point wide white Border around a gray Rectangle.
To make the border appear like it’s outside the bounds of a layer, apply Padding of the same width before adding the Border.