Every closed set in $\mathbb R^2$ is boundary of some other subset A problem is bugging me many years after I first met it:

Prove that any closed subset of $\mathbb{R}^2$ is the boundary of some set in $\mathbb{R}^2$.

I have toyed with this problem several times over the last 20 years, but I have never managed to either prove it, or conversely prove that the question as posed is in some way wrong.
I can't remember which book I found the question in originally (but I am pretty sure that is exactly the question as it appeared in the book).
Any help, with either the topology or the source would be gratefully received!

There is a very elementary way to solve this, that is also much more widely applicable.

Let $Y$ be a topological space that can be partitioned into dense subsets $D$ and $E$. If $X \subset Y$ is closed, then there is a $V \subset X$ such that $\operatorname{Fr} V = X$.

Take $V = X \setminus (D \cap \operatorname{Int} X)$. Then since $V \subset X$ we have $\operatorname{Cl} V \subset \operatorname{Cl} X$, and $\operatorname{Fr} V \subset X$ and $E \cap \operatorname{Int} X$ dense in $\operatorname{Int} X$, therefore $\operatorname{Cl} V = X$. On the other hand $Y \setminus  X$ is dense in $Y \setminus \operatorname{Int} X$ and $D \cap \operatorname{Int} X$ is dense in $\operatorname{Int} X$, therefore $\operatorname{Int} V = \emptyset$. It follows that $ \operatorname{Fr} V = X$.

Some additional information:
The question probably came from Willard's General topology, problem 3 B.
As Henno Brandsma pointed out in a comment, a space that can be partitioned into
two dense subsets is called resolvable. For some examples of irresolvable spaces, see the answer to "Is a perfect set a boundary?".
A somewhat stronger result can be found in "Any two disjoint open sets are the interior and exterior of some set".
