Although there are no such hard and fast rules, being in the UAE is better to maintain dress codes. Try to wear dresses that can cover your knees. You can choose long pants, capris or long skirts, whatever makes you comfortable. But always keep your legs, arms, and head covered in any holy place like a Mosque.