I am confused about why the orthogonal projection of matrices onto subspaces is given by a change-of-basis-like formula. For example, in the below image from these notes, why is the orthogonal projection of matrix A onto the subspace $V_m$ given by $V_m^* A V_m$?
When I search online, I come across a formula like (for example, from the Wikipedia article), which does not look at all like $V_m^* A V_m$.