How to draw rounded square?

Have a look at this