Prepare the dough by mixing flour, baking powder, and salt. Blend in softened butter until coarse crumbs form. Add cream cheese and mix until just combined.
Make the cream cheese filling by blending softened cream cheese, granulated sugar, and vanilla extract until smooth.
Prepare the raspberry filling by gently mashing fresh or thawed raspberries in a bowl.
Roll out the dough into a rectangle, cut into squares, and fill with cream cheese filling and raspberries. Fold corners to center and seal.
Preheat oven to 375°F. Brush danishes with egg wash and bake for 15-20 minutes until golden brown.
Allow to cool slightly and dust with powdered sugar before serving.