It means that something is going to happen, something that has to do with nature
In the doors. It is used as a work that is rejected and not accepted.
different meaning: on the front door, close to the exit of a site. and is used figuratively to say that it is nearly finished an activity, work, career, course... ( I find ad portas to be lawyer, physician, specialist, etc. )