Local families are often shopping at malls across Dubai so you're going to want to dress appropriately. You can wear shorts in Dubai and even skirts, if they are at knee length and not shorter than that. Just be mindful of the fact that there are a lot of families and children there.