It seems obvious to me
Why not just put the cockpit UNDER the nose of the plane instead of on top of it?
Seriously, the times you need visibility most are landings and take-offs, when you need to see the ground.
In flight, Um, you're in the air, there's nothing over you, a nose under cockpit would still give you a view off to the sides, front, and below. Everywhere except directly overhead, in fact. (Funny, but no one seems to worry about what's coming up from behind up there, unless they're in a combat situation.)
For directly overhead, a camera view should be sufficient for the occasional errant plane, falling space debris, planet killing asteroid, or passing UFO.
(Of course, I'm talking passenger aircraft here, for a fighter plane, an under nose cockpit might make ejecting a tad tricky!)
Helicopter icon, because ejecting from them's a bit tricky too!