Yeah, Ghana is undoubtedly one of the most democratic countries in Africa (and arguably the most, if you consider regular closely contested elections and transfers of party power important measures of democracy, which would then place it ahead of South Africa, Botswana, and Namibia).
the most democratic African countries are small island nations like Mauritius and Cape Verde
Also, all five of the countries I highlighted here appear to be among the
best least bad African countries in terms of LGBT rights. Especially South Africa (the only one with full legal equality/gay marriage) and Cape Verde (where the population may be even more LGBT-accepting of that of South Africa).
Ghana, however, is pretty typical for mainland West Africa when it comes to virulent homophobia.