need help with deforming a mesh over another mesh say you have sphere and plane meshes and you want to take the plane and slide it to the sphere without it clipping through but you also need it to deform around the sphere. is there a way to do this?

im asking because im trying to put windows on a boeing 777 and i need the windows to take the shape of the plane's body and i dont want to go editing them to fit each area one by one. i tried the snap function but i need something that can deform it too
If I understand correctly you want the shrinkwrap modifier. It will wrap the sphere with the plane. Place the modifier on the plane and select the sphere as the target. If it does not work make sure the plane has the necessary geometry to deform.