You cannot directly apply for an H1B visa without a job offer while in the UAE.
Here's why:
- Employer Sponsorship is required: The H1B visa is employer-sponsored, meaning a U.S. employer must petition on your behalf.
 - No Direct Self-Application (Traditionally): Traditionally, individuals cannot file Form I-129 (Petition for a Nonimmigrant Worker) themselves.
 - Valid Job Offer Needed: You must have a valid job offer from a U.S. employer for a position qualifying as a "specialty occupation".