01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger until well blended.
03 - In a large bowl, beat butter, granulated sugar, and brown sugar until creamy and fluffy, approximately 2-3 minutes.
04 - Add the egg and vanilla extract to the butter mixture, mixing until fully incorporated and smooth.
05 - Gradually mix dry ingredients into the wet ingredients, stirring until just combined. Do not overmix.
06 - Gently fold in grated carrots, oats, walnuts or pecans if using, and raisins if using until evenly distributed throughout the dough.
07 - Using a tablespoon or small cookie scoop, drop rounded tablespoons of dough onto prepared baking sheets, spacing about 2 inches apart to allow for spreading.
08 - Bake for 11-13 minutes until edges are lightly golden and centers appear set. Allow cookies to cool on the baking sheet for 5 minutes before transferring to a wire rack to cool completely.
09 - For the cream cheese drizzle, beat cream cheese, powdered sugar, milk, and vanilla together until smooth and creamy. Drizzle over completely cooled cookies using a spoon or small piping bag. Allow glaze to set before serving.