Stacking units in StarCraft is only possible on certain trigger maps, and it takes a bit of setup.
Start by hot-keying your worker unit. Then turn off the lights, which is usually done with a civilian unit. Finally, select your worker using the hot-key you assigned. With that done, you'll be able to stack your units in that spot. It's a niche trick, but handy to know on the right map.