If the men and women aren't dancing together, is it strictly required that there also be a *mechitza* between them? If so, why? What guidelines would this *mechitza* have to meet?

Or is it simply a smart practice, to avoid gawking and/or mixed dancing?