Apply the border, drawing it in the given box.
Get the rectangle for the given side of the border.
Get square for corner next counter-clockwise to the given side. Note: returned rectangles may have negative size; rect start position will always point to the corner itself.