Unless things have changed, you can not be on US soil and apply for VISA, work permits etc. The person applying doesn't need to be in his/her home country, but they have to apply from outside the US ... at least, that's how it was when I moved here.