pub fn resize<T>(id: Id, new_size: Size) -> Task<T>
Resizes the window to the given logical dimensions.