Cut a section out of the cookie and bake it in place. When it is baked, cut that section out. Entwine the hearts, with the full heart decorated and dried already, and glue the missing piece back in with royal icing. Prop it up on a bowl to dry. Carefully decorate the other heart.
Thank you Allison Paugh of Allison’s Sweet Little Things for sharing.