The Hirzebruch signature theorem tells us that for a smooth compact oriented 4-manifold, the signature $\sigma(M)$ is proportional to the first Pontryagin number of $M$: $$ 3\sigma(M)= p_1(M) = k \int_M \mathrm{tr}(R^2) $$ for some appropriate constant $k$ (for the purposes of this question, take the integral to be the definition of $p_1$, though properly this uses some Chern–Weil theory to prove). The usual proof of this fact goes via a general theorem involving the $L$-genus. The question was recently raised in conversations as to whether this result had a more elementary geometric proof, for instance at the level of Chern's intrinsic proof of the Gauss–Bonnet theorem, with additional specialisations that are specific to dimension 4.
Some simple-minded observations:
We can (apparently) simplify the integral to one of the form $\int_M |W^+|^2 - |W^-|^2$ (up to a proportionality constant), using the decomposition of the curvature tensor $R$ via Hodge theory and the self- and anti-self-dual parts of the Weyl curvature, $W^\pm$.
Likewise, we can write the signature as the difference $b_+ - b_-$ of dimensions of a decomposition of $H^2$.
So one might conceivably be able to prove $3(b_+ - b_-) = \frac{1}{4\pi^2}\int_M |W^+|^2 - |W^-|^2$ more directly using geometric methods, but I am completely unfamiliar with this area and existing research. Clearly one can prove the result using even fancier methods, but this is not what I'm looking for.