The whole point of a SLR is to view the image as the lens and sensor would see it. It uses a mirror to project the light than comes through the lens up into your eye. When you press the shutter button, the mirror comes up and directs the light into the sensor. It is a giant breakthrough compared to double-reflect lens cameras where you viewed the image through a separate lens than what the sensor would be seeing. Also it was a mirrored image and difficult for a non experienced users.
Also, is the sensor was left exposed to direct sunlight all the time, the sensor would become fried and would be damaged. If you don believe me and want a cheap example, take a fresh roll of film and expose the film to the sun for a bit. After you do that, try taking a picture with that film and see what develops