Bake the yellow cake mix in a greased 9x13-inch baking pan according to box instructions until a wooden toothpick inserted into the center comes out clean.
Cool the cake on a wire rack for 10 minutes.
Poke holes all over the warm cake surface using the round handle of a wooden spoon, spacing holes about 1 inch apart.
Whisk sweetened condensed milk and cream of coconut together in a medium bowl until thoroughly combined.
Pour the sweet coconut milk mixture slowly and evenly over the warm cake, allowing it to soak deep into every channel.
Place the soaked cake in the refrigerator to chill for at least 3 hours.
Beat cold heavy whipping cream, powdered sugar, vanilla extract, and coconut extract in a chilled bowl until stiff peaks form.
Spread the whipped cream evenly over the chilled cake.
Sprinkle toasted coconut flakes generously over the whipped topping.
Chill for 1 additional hour before slicing into chilled dessert squares.