Proof (separation in subspace topology)

$\Leftarrow$ direction

It suffices to show that $U$ and $V$ are open in $Y$.

Since $Y = U \cup V$ and $U\cap \overline{V} = \emptyset$, we have $$ \begin{align*} U = Y \cap (X \setminus \overline{V}). \end{align*} $$ $\overline{V}$ is closed, so $X\setminus \overline{V}$ is open in $X$, and thus $U$ is open in $Y$. Similarly for $V$.

$\Rightarrow$ direction

$U,V$ are open in $Y$, non-empty and $U\cap V = \emptyset$. It suffices to show that $U \cap \overline{V} = \emptyset = \overline{U} \cap V$.

$U$ is open in $Y$, so by subspace topology, there exists $U'$ open in $X$ such that $U = Y\cap U'$. For all $u\in U$, $U'$ is an open neighbourhood of $u$. Since $V\subseteq Y$, we have $V\cap U' = V\cap Y\cap U' = V\cap U = \emptyset$, and hence $u$ is not an accumulation point of $V$. Thus $U\cap \overline{V} = \emptyset$. Similarly for $\overline{U}\cap V = \emptyset$.