Anything can be done as long as it does not violate the law. In your case, you just need to find two employers who are willing to give you a job contract that allows for what you propose -- namely, a contract that pays your for six months of work per year, and gives you unpaid leave for the remainder of the year; or a contract that pays you for 50% work throughout the year, with the expectation that you spend 50% of the year on location.
Is that practicable? That is a question that depends on the person and the universities involved. If you have received a Nobel prize, then you can negotiate pretty much whatever you want with any university in the world because they will be eager to have you on their faculty, and I suspect that a fair number of Nobel prize winners have exactly the sort of arrangement you suggest. If, on the other hand, you're a second year faculty at Podunk State University, with ten publications and 200 citations, then you probably don't have the negotiation power to do that: If you go to your department head and ask whether you could go to a 50% position where you're only going to be in town for six months of the year, the department head will likely say "That is not worth our time and money; we wish you well should you decide to go that other university on a permanent basis".