I am going to assume that you are serious in asking this question. When the pan is hot, pour the oil into a coffee can or something similar. When the can is 3/4 full, put a lid on it and toss it in the garbage.
Grease or oil will not freely pass through a drainage system without leaving traces of it in the pipes. Continue the habit long enough and you’ll eventually plug the pipes.
If you want to put on a green coat, save the oil until winter. Put it outside in the cold and let it harden. Press seeds into it. Then wrap it around a piece of rope and hang it in a tree for the birds. This won’t work if you live in SoCal, too warm.
“I am going to assume that you are serious in asking this question”
It is a theoretical question only. I NEVER put anything greasy down my pipes. I use glass jars or cans. I never fry anything, LOL! But with San Diego City’s new ordinance linked above I stand the chance of a code enforcement officer finding a can or jar in my regular trash and I will be fined. Guess I will have to resort to zip lock bags!