Scientists once considered sleep to be like a shade getting drawn over a window between the brain and the outside world: when the shade is closed, the brain stops reacting to outside stimuli.