Minecraft wiki entry for Survival_in_an_infinite_desert, associated text: 1-high sand block under the skylight, topped with a cactus to prevent endermen visiting.
1-high sand block on the roof, topped with a cactus to discourage spiders parking on your roof, and make your shelter more visible from a distance (e.g. on your way back to your main base after exploring.