Preheat your oven to 350°F (175°C) and prepare two 9-inch round cake pans.
In a large mixing bowl, cream the unsalted butter, granulated sugar, light brown sugar, lemon zest, lemon extract, and vanilla extract until light and fluffy.
Add the large eggs one at a time, beating well after each addition.
In a separate bowl, whisk together the cake flour, baking powder, baking soda, and salt.
Gradually add the dry ingredients to the wet mixture, mixing on low speed until just combined. Then fold in the whole milk, sour cream, and lemon juice.
Toss the raspberries in all-purpose flour and gently fold them into the batter.
Divide the batter between the prepared cake pans and bake for 35-40 minutes.
Let the cake layers cool in the pans for 10 minutes, then invert onto a cooling rack to cool completely.
Prepare the frosting by beating the cream cheese and softened butter until fluffy, then gradually add the confectioners' sugar, lemon zest, lemon juice, and a pinch of salt.
Once the cakes are cool, layer one on a serving plate, spread with frosting and raspberry preserves, then place the second layer on top.
Frost the top and sides of the cake, refrigerate for 20 minutes, then garnish with lemon slices and fresh raspberries before serving.