Paint Edit > Layer Operation > New Image Layer

Creates an image layer containing the image of the current window.