An inverse between nonzero matrix corners
Let $C$ be a field, $A\subseteq M_N(C)$ a unital $C$-subalgebra, and $p_1,\ldots,p_n\in A$ nonzero pairwise orthogonal idempotents with $\sum_i p_i=1$. Assume $$p_iAp_i=Cp_i\quad(1\le i\le n),$$ and assume that $Y\in A$ is zero whenever $aY$ is nilpotent for every $a\in A$. For any nonzero $Y\in A$ with $p_iY=Y=Yp_j$, there is $w\in A$ such that $$p_jwp_i=w,\qquad Yw=p_i,\qquad wY=p_j.$$