Heat ghee in a large, heavy-based pan over medium heat. Add all sliced onions and cook low and slow for 15-20 minutes, stirring regularly and until deeply golden and caramelised. Don't rush this — it's where the dopiaza flavour lives. Remove the onions and set aside.
Increase heat to medium-high. Add beef mince pan, breaking it up as it browns, cook for 5-7 minutes until no pink remains and the mince is beginning to catch colour on the bottom of the pan.
Add garlic and ginger and cook for 2 minutes. Add cumin, coriander, Kashmiri chilli, turmeric, and garam masala; stir through and cook for 1 minute until fragrant.
Add crushed tomatoes. Simmer uncovered for 10-15 minutes until the sauce has reduced and the oil begins to separate at the edges. Stir through the caramelised onions and fresh coriander. Taste and season well.
For the mash, boil potatoes in well-salted water until completely tender, about 15-20 minutes. Drain well. Mash with butter and warm milk until smooth and fluffy. Season generously. If you are time poor, buy pre made mash from the store, no judgement.
Preheat the oven to 200°C fan force/220°C convection or on a grill setting. Spoon the keema into a large baking dish (about 22cm x 28cm, 2L-capacity rectangle baking dish) and spread evenly.
Spoon the mash over the top and use the back of a spoon to rough up the surface — the ridges will catch colour in the oven. Scatter cheese generously over the top.
Bake for 5-15 minutes (depending on oven setting) until the cheese is bubbling and golden and the edges are beginning to crisp. Rest 5 minutes before serving. A dollop of sour cream alongside this wouldn't go astray!
