I did mine with gorilla glue. Glue on the rubber seal, wait till goes tacky, wet the other surface on the door and tape to hold it in place while it sets
I don’t know what Ford use in the factory but I’ve seen loads of Focus’s (Foci?) with their door seals flapping about in the wind