If you’re expecting the P-51 to have a bubble canopy, this was the original design. Glass-making needed more improvement before they could have shapes that were still distortion-free. They added the bubble canopy with the P-51D.
The F-22 is actually further back than it appears. It’s about twice the length of the P-51.
Notice the golden tint in the F-22’s canopy. While this is similar to the EA-6 Prowler’s gold canopy, which protects its crew from electromagnetic waves, here it also adds to the F-22’s stealth by scattering any radar reflection.