Heat the ghee in a wide, medium saucepan over medium heat. When melted, add the onion and cook until soft. Sprinkle a pinch of salt and continue cooking until onions are a rich, dark brown, 35 to 45 minutes. Stir and scrape the bottom of the pan occasionally to prevent sticking, and/or add water to prevent from burning.