First, combine the dough ingredients in a kitchenaid with a paddle adjustment or by hand or with a kitchen utensil.
Spread the dough mixture onto a baking sheet lined with parchment paper. Let it be about 2 inches thick. Don't worry if the dough seems not as smooth. It will eventually get crumbled. Bake in a 300 F oven for 20 minutes until it has dried. It shouldn't be browned but rather just baked to get dry. Then set it room temperature to cool. Once cooled, crumble in a food processor until fine.
To the bottom of a 14 inch round baking pan (I used Wilton cake pan)(you want a little barrier to your pan), add the ghee with the kanafeh coloring and spread very well on the bottom and edges of the pan so the knafeh won't stick. The ghee will add great flavor too. Make sure there is enough ghee to coat your pan very well.
Spread out 3/4 of the dough mixture or all of it if you have an even bigger tray. Just make sure the entire bottom is covered with the knafeh dough about 3 inches deep. Most importantly, make sure you pat down the dough very well into the ghee and have an even layer. Press down hard. You can do so by putting parchment paper on top of the dough and using a plate to press the dough into the bottom of the pan. This is very important so the knafeh does not crumble upon flipping.
Then, add the crumbled Arabic sweet cheese all over leaving just the edges without any cheese. Make sure the cheese has no moisture before using and be sure to pat down the cheese very well into the dough. Then, do the same with the fresh mozzarella.
Cover with aluminum foil and bake in a 450 F oven for 20-25 minutes on the bottom rack. After 20-25 minutes, check to see if cheese is melted and edges appear browned. If not, give it a few more minutes but keep an eye on it. The knafeh is ready when you are able to move the pan and if you feel the bottom is loosened and moves a bit.
Once ready, remove the foil. Loosen the edges with a spatula or butter knife. Slightly jiggle the pan and see if it completely loosened. Then, using a slightly bigger plate/baking sheet than the one you baked in; you will flip over the knafeh onto it.
Do this by placing the larger plate on top of the knafeh. Using oven mits hold the pan and quickly flip and gently place. This is why it is very important to loosen the knafeh before flipping. Also why it is very important to grease the pan with ghee.
Drizzle all over with homemade simple syrup and sprinkle with the crushed pistachios. To make the syrup, just combine 2 cups of white sugar with 2 cups of water. Stir together and bring to a boil then allow to simmer for 7 minutes until just slightly thickened. Make sure it is warm when pouring on the hot knafeh. Add more syrup on the side for those who prefer a sweeter knafeh.
Cut and enjoy this amazing dessert!