Beat the butter and sugar together until fluffy, then mix in the egg and vanilla extract.
Whisk the flour, baking powder and salt in a separate bowl, then stir into the wet mixture until a dough forms.
Chill the dough for 1 hour, then roll to 1/4 inch thickness.
Cut out shapes with a larger cutter, then cut a smaller shape from the center of each to create a window.
Place the cookies on parchment-lined sheets and fill each window with crushed candy, keeping it inside the cutout.
Bake at 325°F for 9 to 11 minutes, until the candy has fully melted and the cookie edges are set.
Cool completely on the sheet, at least 15 minutes, before lifting; the candy centers are fragile while warm.