Mix flour, salt, sugar, and butter until crumbly. Add ice water and form a dough.
Cover and chill the dough for 30 minutes.
Preheat the oven to 180°C (350°F). Roll out the dough and place it in a 9-inch pie dish.
Blind bake for 20 minutes, then let it cool.
For the filling, whisk sugar and cornstarch in a saucepan. Add coconut milk, heavy cream, and egg yolks. Cook until thick.
Strain the custard, stir in extracts, and pour into the pie crust. Cover and chill for at least 2 hours.
Beat whipping cream with powdered sugar until stiff. Spread over the pie and top with coconut flakes. Enjoy!