You can use the alpha channel to restore the selection, just use Alpha to Selection in the pasted layer. You only need to make sure that there is no transparency in the part of the layer that is to be copied:
- Select what you need
- Choose a non-transparent layer or create a temporary new one
- Edit - Copy (Ctrl+C)
- Go to the image where you want to insert the selection
- Edit - Paste as - New Layer
- Layer - Transparency - Alpha to Selection
- Delete the pasted layer.
Alternative method, using channels:
- Select what you need
- Select - Save to channel
- Ensure the newly created channel is selected and Edit - Copy (Ctrl+C)
- Go to the image where you want to insert the selection
- Open “Channels” and create a new channel (a button at the bottom or via the context menu)
- Ensure the newly created channel is selected and Edit - Paste (Ctrl+V)
- Open “Layers” and anchor the floating layer (a button at the bottom or via the context menu)
- Open “Channels” and replace the selection with this channel (a button at the bottom or Channel to Selection in the context menu)
- You may delete the channels now if you aren't going to reuse this selection anymore, or you may leave them for a later use, just repeat the last action to restore.
Thank you, this guide is actually usable by somebody who knows nothing about channels in GIMP (me). – qubodup – 2018-11-25T20:31:47.923