You would purchase as a foreign national.
Most likely you would need to put 20-35% down minimum depending on the loan program
If you are making a cash purchase, that is even easier.
You may be required to have payment reserves in a USA bank, but that depends on the lender.
The transaction is easy and closing is similar to residents citizens approx 30 days with verifications. Interest rates are similar to resident citizen 2nd home rates.
The best thing for you do do is to find a good experienced knowledgeable agent in the area you want to purchase, you agent will be able to help you with a smooth transaction.
Best of luck