Yes, there is (was) a lot of foreign investment in Dubai, but the government was effectively underwriting much of it by starting off and feeding the Ponzi scheme. The big headline projects (the world, Burj Dubai, etc) were all underwritten by the Dubai government.
Perhaps I didn't make it clear enough in my post that I wasn't suggesting Dubai was remotely socialist. My point was that centralised planning in an economy leads to problems. Where I failed in my haste to post and move on, was that I omitted the next part is that most socialist economies rely, and expect, a greater amount of government control over the economy, right up to the point where you get 100% control of the official economy in the case of communism.
The point I'm making is that excessive government interference in the marketplace leads to undesired outcomes. Everyone who is entrepreneurial should have this as a startup message on their computer or phone. It's so easy to mistake government money flows for real prosperity.
What I'm suggesting is that Dubai World shouldn't have borrowed and spent so much money on non-productive investments. The [tenuous] link to socialism I'm trying to make is that the hallmark of any truly socialist government is that it spends too much money on unproductive investments (aka bridges to nowhere), not because they are stupid, but because they evaluate investment on things other than the ability to return their outlay and make a return in the future.
My post was designed to look absurd, because I'm truly concerned about the reckless amount of government borrowing and spending taking place across the world. It's unprecedented in scale and will affect us all in the fallout. We all look at Dubai and think 'can't happen here' (wherever we might be) but so many places can end up like this.