01 - Place butter in a medium saucepan over medium heat. Cook, stirring constantly, until butter foams and develops a golden-brown color with a nutty aroma, approximately 4–6 minutes. Immediately transfer to a large mixing bowl and allow to cool for 10 minutes.
02 - Add brown sugar and granulated sugar to the cooled brown butter. Whisk thoroughly until well combined. Stir in eggs and vanilla extract, mixing until completely smooth and homogeneous.
03 - In a separate medium bowl, whisk together flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger until evenly distributed.
04 - Gradually add the dry ingredients to the wet mixture, stirring until just combined. Be careful not to overmix. Gently fold in oats, grated carrots, chopped nuts, and raisins if using.
05 - Cover the bowl and refrigerate the dough for 30 minutes. This resting period is recommended for achieving chewier cookies with enhanced flavor development.
06 - Preheat oven to 350°F. Line two large baking sheets with parchment paper to prevent sticking and ensure easy cleanup.
07 - Scoop chilled dough into balls using approximately 2 tablespoons per cookie. Place dough balls on prepared baking sheets, spacing them 2 inches apart to allow for spreading.
08 - Bake for 11–13 minutes, or until edges are set and centers appear slightly underbaked. Remove from oven and let cookies cool on the baking sheet for 5 minutes before transferring to a wire rack.
09 - While cookies cool, beat softened cream cheese and butter together until smooth. Add powdered sugar and vanilla extract, continuing to beat until the glaze reaches a drizzling consistency.
10 - Drizzle the cooled cookies with cream cheese glaze. Allow glaze to set before serving or storing.