draws the background and the border of the box when they are set, the text is drawn by its text nodes