There’s only three ways one could get a residence visa / residence permit in Dubai:
Ownership of a company in the UAE;
Buying property in the UAE;
Employment in the UAE.
When buying Dubai property worth more than 205,000 $, you and your family members receive a UAE residency for 10 years.