Asian Carriers usually give out so called "Extended Layover" and advertise as "Foreign Bases". Basically they work you to the max for 18-20 days and then schedule you to deadhead or operate to the selected layover point. No foreign contract, no labor laws abiding. To them you are just laying over for extended period which happen to be close to your home and you have chosen to cancel the hotel.
You usually have no control over the allocation of your days off and the roster patterns and have to agree that they can sometimes allocate your annual leave days here or there to satisfy the schedule. And of course no perdiems on the Extended Layover.
Basically works fine for everybody, money still stays in the operators country and you still work there. The question is consecutive days scheduling and nothing else.
Some carriers even offer 5 on 3 off or 7-5 or whatever....
It is possible