Preheat oven to 400°F and line baking sheets with parchment paper.
Beat softened cream cheese until smooth, then add sugar, egg yolk, vanilla, and flour.
Roll puff pastry into 12-inch square, cut into 9 squares each.
Place pastry squares on baking sheet and cut diagonals toward center.
Spoon 1 tablespoon filling in center, add 4–5 raspberries.
Fold alternating corners to form pinwheel shape.
Brush pastry with egg wash, sprinkle coarse sugar.
Chill assembled pastries in fridge 20 minutes before baking.
Bake 18–22 minutes until golden and puffed.
Drizzle optional glaze after cooling slightly.