One can give a square a differential structure, namely by transferring the smooth structure of a circle to it. But then a square in not a sub-manifold of $\mathbb{R}^2$.
But the strong Whitney theorem implies that one can embed a square in $\mathbb{R}^2$. I would like to know how this is done.