Recall that if $T : V \to W$ is a linear map between finite-dimensional inner product spaces, then $T^* : W \to V$ is defined as the unique linear map satisfying $\langle Tv, w \rangle = \langle v, T^*w \rangle$ for all $v \in V$ and $w \in W$. Notice that $w \in \ker T^*$ iff $T^* w = 0$ iff $0 = \langle v, T^* w \rangle = \langle Tv, w \rangle$ for all $v \in V$, so $\ker T^* = T(V)^\perp$.
Consequently, if $S : V \to V$ is linear, then $V = S(V) \oplus S(V)^\perp = S(V) \oplus \ker S^*$. If $S : V \to V$ is also idempotent ($S^2 = S$), then $Sv = v$ iff $S(Sv) = v$ shows that $S(V)$ is the fixed points of $S$, and the only fixed point in the kernel is $0$, so $S(V) + \ker S$ is direct with dimension $\dim V$ by rank-nullity, so $S(V) \oplus \ker S = V = S(V) \oplus \ker S^*$.
Is $\ker S = \ker S^*$? In general, $A \oplus B = A \oplus B'$ does not imply $B = B'$, so I suspect not.
For an idempotent operator $S: V \to V$ let $K$ be its kernel and $P$ its image, so that $V = K \oplus P$. The adjoint operator $S^*$ is also idempotent, and we can see that if $v \in P^\perp$ then $\langle -, S^* v \rangle = \langle S(-), v \rangle = 0$. Therefore $P^\perp \subseteq \ker S^*$. Applying the same logic to $1 - S$ shows that $K^\perp \subseteq \operatorname{im} S$, so $S^*$ has kernel $P^\perp$ and image $K^\perp$.
Thinking of $S$ as a projection to $P$ by killing $K$, then $S^*$ is a projection to $K^\perp$ by killing $P^\perp$. A little thought should convince you that $K = P^\perp$ if and only if the operator $S$ is self-adjoint.