macOS will re-open the programs you last had open, and reposition the windows to the same locations as before (though with dubious success at actually opening the correct files) upon restart, so it's entirely possible to have a perpetually-buried desktop that never becomes visible.