Set borders in a "Rectangle" shape

still don’t understand how w,h works ?
how to draw rectangle form it ?