We all know the reason Kishi decided to make him stay in the Kamui dimension. It's because he would have soloed Obito once again if it weren't the case(poor guy can't even use Kamui anymore )
If it's the end of the serie he can maybe die and save the Shinobi world with a big kamui but if Kishi plain to make a new serie like 2-3 time skip, he'll still have a major role.