Inherit project folder when moving document to new window

This only happens if the document being moved is a child of the project folder.