[guided]The purpose of this step is to replace an arbitrary inner product by one that is compatible with the [group action](/page/Group%20Action). Choose a positive definite form
\begin{align*}
h_0:V\times V\to\mathbb K,
\end{align*}
where this means a real inner product if $\mathbb K=\mathbb R$ and a positive definite Hermitian inner product, linear in the first variable, if $\mathbb K=\mathbb C$. Let $\nu$ be the normalized left Haar measure on the compact Lie group $G$, so $\nu(G)=1$.
Define a new form
\begin{align*}
h:V\times V&\to\mathbb K
\end{align*}
by averaging the pullbacks of $h_0$:
\begin{align*}
h(v,w)=\int_G h_0(\rho(g^{-1})v,\rho(g^{-1})w)\,d\nu(g).
\end{align*}
This integral is legitimate because, for fixed $v,w\in V$, the integrand is the continuous map
\begin{align*}
G&\to\mathbb K
\end{align*}
defined by
\begin{align*}
g&\mapsto h_0(\rho(g^{-1})v,\rho(g^{-1})w).
\end{align*}
Continuity follows from the continuity of inversion on the Lie group $G$, the smoothness of $\rho$, the continuity of the evaluation action of $GL(V)$ on $V$, and the continuity of $h_0$.
The algebraic properties of $h$ come directly from the same properties of $h_0$ and the linearity of integration. Thus $h$ is bilinear in the real case, and Hermitian with linear first variable in the complex case. To check positive definiteness, take $v\in V$. Then
\begin{align*}
h(v,v)=\int_G h_0(\rho(g^{-1})v,\rho(g^{-1})v)\,d\nu(g)\geq 0.
\end{align*}
If $v\neq 0$, every vector $\rho(g^{-1})v$ is nonzero because $\rho(g^{-1})\in GL(V)$. Therefore
\begin{align*}
h_0(\rho(g^{-1})v,\rho(g^{-1})v)>0
\end{align*}
for every $g\in G$. Since the integrand is continuous and strictly positive on the compact group $G$, its integral against the normalized Haar measure is strictly positive. Hence $h(v,v)>0$ for $v\neq 0$.
It remains to prove invariance. Fix $a\in G$ and $v,w\in V$. Using the homomorphism identity for $\rho$, we compute
\begin{align*}
h(\rho(a)v,\rho(a)w)=\int_G h_0(\rho(g^{-1})\rho(a)v,\rho(g^{-1})\rho(a)w)\,d\nu(g).
\end{align*}
Since $\rho(g^{-1})\rho(a)=\rho(g^{-1}a)$, this becomes
\begin{align*}
h(\rho(a)v,\rho(a)w)=\int_G h_0(\rho(g^{-1}a)v,\rho(g^{-1}a)w)\,d\nu(g).
\end{align*}
Now use the substitution $k=a^{-1}g$, or $g=ak$. Left invariance of Haar measure gives $d\nu(g)=d\nu(k)$, and the group calculation gives
\begin{align*}
g^{-1}a=(ak)^{-1}a=k^{-1}.
\end{align*}
Therefore
\begin{align*}
h(\rho(a)v,\rho(a)w)=\int_G h_0(\rho(k^{-1})v,\rho(k^{-1})w)\,d\nu(k)=h(v,w).
\end{align*}
Thus $h$ is invariant under the action of every $a\in G$.[/guided]