The trick to getting sugar cookie icing to harden is in the ingredients, powdered sugar, milk, and corn syrup. The extract adds a boost of flavor. The small amount of corn syrup achieves that shiny, glossy surface. Since there is no butter or fat in the recipe, this icing will harden similar to royal frosting.