01 - Cut cold butter into flour using a pastry blender or fingers until mixture resembles coarse crumbs. Incorporate sourdough discard, sugar, and salt until dough just comes together. Form into a disk, wrap tightly in plastic, and refrigerate for minimum 1 hour.
02 - Beat softened cream cheese until completely smooth. Add granulated sugar, vanilla extract, and lemon juice. Continue mixing until fully incorporated and creamy. Reserve at room temperature for assembly.
03 - Combine raspberries, sugar, cornstarch, and lemon juice in small saucepan. Cook over medium heat, stirring constantly, until mixture thickens and bubbles, approximately 3–5 minutes. Remove from heat and allow to cool completely.
04 - Preheat oven to 375°F and line baking sheet with parchment paper. On lightly floured surface, roll chilled dough to ¼-inch thickness. Cut into 8 equal rectangles or circles. Arrange 2 inches apart on prepared baking sheet. Press center of each piece to create indentation. Fill each center with 1 tablespoon cream cheese mixture, topped with 1 tablespoon raspberry filling.
05 - Let assembled pastries rest at room temperature for 20–30 minutes until slightly puffed. Brush edges with beaten egg wash for golden finish.
06 - Bake for 20–25 minutes until edges are deep golden brown and filling is set. Transfer to wire rack and cool completely before glazing.
07 - Whisk powdered sugar with milk and vanilla until smooth, drizzle-consistency glaze forms. Drizzle generously over completely cooled pastries. Allow glaze to set before serving.