I lost my garage door remote opener. Unfortunately, this is a detached garage, i.e. garage by itself with no door or windows to get in beside the garage door itself.

I can buy a new garage door opener but without being able to open the garage, how can I reprogram this new opener to open my current garage door?

Any expert in this area? I want to see if there is any solution beside break down the door.

Thank you.