Preheat your oven to 400°F (200°C). Line two baking sheets with parchment paper.
In a medium bowl, beat the softened cream cheese, 1/4 cup granulated sugar, egg yolk, and vanilla extract until smooth. Set aside.
Unroll the thawed gluten-free puff pastry sheets onto a lightly floured surface (use a gluten-free flour blend). Cut each sheet into four equal squares.
Place the squares on the prepared baking sheets. Lightly score a border about 1/2 inch from the edge of each square using a sharp knife, being careful not to cut all the way through the dough.
Using a fork, gently prick the center area inside the scored border several times.
Spread about 1 tablespoon of the cream cheese mixture onto the center of each square, staying inside the border.
Top the cream cheese with about 1 teaspoon of strawberry jam or compote over the filling.
In a small bowl, whisk together the egg and 1 tablespoon of milk or water to create an egg wash. Brush the edges (the border) of each pastry with the egg wash.
Bake for 15 to 18 minutes, or until the pastry is puffed and golden brown.
While the danishes cool slightly, whisk together the 2 tablespoons of powdered sugar and 1 teaspoon of milk or water to make a thin glaze.
Drizzle the glaze over the warm danishes before serving.
Notes
Gluten-free puff pastry often requires careful handling; avoid overworking the dough to maintain layers.
If you use fresh strawberries, slice them thinly and place them over the cream cheese before baking.