There are several ways to cover a window while sleeping in a car. You can buy window covers or curtains or buy a roll of Reflectix (insulation) material and make your own window covers.