So long as you are the owner of record of the home in Puerto Rico you can sell it to a third party even though it may be subject to a foreclosure. The issue is whether or not there is enough of a purchase price amount to retire the property's debt load.