Not sure about Iran, but Israel got support and kind of an open market with silicon valley and it's an isolated part of the ME anyway it's not like an Iraqi dev would casually go to Isreal to work lol, UAE not really special, most of the working force in tech is imported talent so the local circumstances are irrelevant.
You must know enough of the politics and history f the region to realize how unlikely it would be for an Iraqi or Iranian of any profession to simply "go work in Israel"