Let $(E,\tau_1)$ and $(F,\tau_2)$ be Hausdorff locally convex topological vector spaces with topologies $\tau_1$ and $\tau_2$, respectively. Let $T:(E,\tau_1)\longrightarrow (F,\tau_2)$ be a topological isomorphism, that is, $T$ is linear, bijective and continuous with continous inverse $T^{-1}$.
Let $M\subset E$ and $N\subset F$ be subspaces such that the restriction $T|_M:M\longrightarrow N$ is an algebraical isomorphism, that is, $T|_M$ is linear and bijective.
Is it true that $(\overline{M}^{\tau_1},\tau_1)$ is topologically isomorphic to $(\overline{N}^{\tau_2},\tau_2)$ via the mapping $T$ ? (where $\overline{M}^{\tau_1}$ is $\tau_1$-closure of $M$ in $E$ and $\overline{N}^{\tau_2}$ is $\tau_2$-closure of $N$ in $F$.)
I guess (intuitively) the answer is "yes", but how to see this fact ? Any hint/comment/answer will be appreciated.