Do you mean the mental process by which decisions are made, or do you mean where does the ability to accept come from?
The short answer is that people accept by exercising the "free choice" ability which was given to them by God.
Pretend I am lost: If I say in the last moments of my life: "I accept Jesus into my heart, am I saved?"