I start by whisking the powdered sugar, 5 tablespoons of milk, corn syrup, and vanilla extract together in a large bowl. It looks thick and a little stiff at first, and that's completely normal. Keep whisking until every lump disappears and the mixture turns smooth and glossy.
Next, I add milk one teaspoon at a time until the icing is thick enough to hold its shape when piped. I test it by lifting my whisk out of the bowl the ribbons that fall back in should take about 3 to 4 seconds to melt away. That's the sweet spot for outlining cookies cleanly.
If I'm adding color, this is when I mix it in, stirring until it's completely even. Then I set aside about a third of the icing to use as my outline icing. The remaining two-thirds becomes my flood icing, so I keep that separate in its own bowl.
For the flood portion, I add milk a half-teaspoon at a time until it loosens up significantly. This icing should flow more than the outline icing does when I lift the whisk, it should melt right back into the bowl almost instantly instead of holding a ribbon shape.
I fill two piping bags, one for outline icing and one for flood icing, snipping just a tiny bit off each tip. I trace the outline around each cookie first, then fill the center with flood icing, using a toothpick to nudge it into any corners that need it.
Once my cookies are decorated, I lay them flat in a single layer so the icing can set undisturbed. The surface firms up within a few hours, but I always give it a full 20 to 24 hours before stacking or packaging so nothing smears.