Let's say that $A \subset X$ is a deformation retract. It follows that $A$ is both a retract and a space homotopically equivalent to $X$. Is the converse true? Probably not, but I couldn't find any example yet.
More specifically the converse would be:
If $A \subset X$ is a retract which is homotopic to $X$ as a topological space then does there exist a homotopy between the retraction and the identity map: $$H:X \times [0, 1] \to X$$ such that $H(x,0)=x$, $H(x,1)\in A$ and $H(a,1)=a$ for $a\in A$.
No. Let $X = \{0,1,2,3,\dots\}$ and $A = \{1,2,3,\dots\}$, both with the discrete topology, and let $i: A \to X$ be the inclusion. Then $i$ has a retraction $r: X \to A, n\mapsto\max\{n,1\}$, and is even a cofibration. $X$ and $A$ are clearly isomorphic. The inclusion, however, is not a homotopy equivalence.