Shape with continuous line for large lineWidth

It would be a hack, but In a previous post, Michael suggested drawing a big white square with a smaller grey one inside.