When you’re using progressive disclosure, you’ll often have content that doesn’t fit the current screen. When the situation calls for that content to be displayed, you don’t want that new information to break your existing designs. You want it to be placed elsewhere.
Use a portal to place your components anywhere you want within the DOM tree. They will keep the same logic but don’t have to keep the same position.