How do I convert a UV unwarped layout to a mesh?

There is no magic button for this, but it probably would be possible via the python scripting! highly recommend looking into the bmesh python api.