For the safest edible cookie dough, always heat-treat the flour before mixing it into the dough. This pie can easily be prepared a day in advance, making it an excellent dessert for entertaining. For extra decoration, drizzle additional melted chocolate or caramel sauce over the finished pie before serving.