Whisk the granulated sugar, flour, and salt in a medium saucepan off the heat.
Whisk in the milk until smooth.
Cook over medium heat, whisking constantly, until the mixture starts to bubble, about 4 minutes, then continue whisking the mixture as it boils until thick like pudding, about 2 minutes longer.
Transfer this hot mixture to the bowl of a stand mixer fitted with the paddle attachment.
Beat at high speed until the bowl cools to the touch, taking up to 10 minutes. With the mixer running at medium-high speed, gradually add the butter 2-tablespoon, ensuring a smooth consistency before adding more. Once all the butter has been fully incorporated, add the vanilla, then elevate the speed to high and beat until the frosting reaches a delightful fluffiness, usually within 3 to 5 minutes.
Using a butter knife or spoon, generously apply the frosting to each thoroughly cooled cookie, and if desired, sprinkle them with decorations. Serve immediately.