Well, he selected the magic wand tool, then selected the layer that is the front of the folder. (He actually selected the empty space outside of the front of the folder).
Then he selected the leaf layer that he dragged in and deleted what had been selected by the wand tool from the other...