The work-from-anywhere trend is growing in popularity among workers and countries, some of which now offer “nomadic worker visas,” with salary limits and insurance requirements. But tax experts warn that tax complications, especially with foreign countries, could dull employers’ enthusiasm.