Creating an empty doc with createAndFill, and then inserting the selection content in it with a Transform and replace should work.
Creating an empty doc with createAndFill, and then inserting the selection content in it with a Transform and replace should work.