When you're dragging a layer, you should see a line appear to indicate where you'll be dropping the layer if you let go. When hovering over a folder, that line will turn into a highlight that covers the folder. Letting go there will drop the layer into the top of the folder.