Let $(X,\tau)$ be a connected Hausdorff space.
Suppose $S\subseteq X$ is such that for every $U\in\tau$, $$U\cap S\neq\varnothing \implies U\cap \overline S\setminus S\neq\varnothing.$$
Is it true that the topology generated by $\tau\cup \{S\}$ is also connected?