If you’ve got no power to stop the estranged relative exploiting other people and their environment to acquire the money you’ll later inherit from them, then inheriting it won’t be unethical when it happens. There might be milage in the idea that it would be unethical to not give it to the people whose labour was exploited by the dead relative, but they’re not necessarily the most ethical option for donating the money once you’ve got it.
If you’ve got no power to stop the estranged relative exploiting other people and their environment to acquire the money you’ll later inherit from them, then inheriting it won’t be unethical when it happens. There might be milage in the idea that it would be unethical to not give it to the people whose labour was exploited by the dead relative, but they’re not necessarily the most ethical option for donating the money once you’ve got it.