Dragging window on iPad from near the top

as i know, i can add a UIWindowSceneDragInteraction to my view to do this. but how can I achieve the same effect in SwiftUI? Is there a way to do it without relying on UIKit?

Dragging window on iPad from near the top
 
 
Q