TL;DR:
heating the pan before the oil has no useful effects in most cases.
While this is a duplicate of another question , I'm going to answer it again because that question's accepted answer provides zero evidence or citations to back itself up.
Which is important, because the accepted answer is wrong.
The popular myth is " Cold oil in hot pan and food won't stick ".
Like most such cooking myths, this one is nonsense; as Kitchen Myths points out : What you really want is “hot pan, hot oil” and that’s what you are actually getting because the cold oil heats up almost instantly when added to the hot pan.
You’ll get the same results if you heat the oil along with the pan rather than adding the oil at the last minute.
In fact some cooks prefer this technique because the appearance of the oil in the pan can give you some indication of when the pan has reached the proper temperature.
Serious Eats says the same thing: The thing is, only raw proteins will form this bond.
Heat causes proteins to fold in on themselves, or even to break down and form all new compounds.
Once in their folded or rearranged form, they no longer stick.
So the goal is to get the meat to cook before it even comes into contact with the metal by heating oil hot enough that it can cook the meat in the time it takes for it to pass from the air, through the film of oil, and into the pan.
So, you want a hot pan with hot oil.
Most of the time, this means that you want to preheat the oil with the pan, not add oil to a preheated pan, although the latter doesn't do any harm.
It just doesn't provide any benefit.
You'll notice I said most of the time , though.
There are times when you do want to preheat the cooking vessel before adding fat, and both of those times have to do with needing to heat the metal hotter than the smoke point of the oil you are using.
If you are cooking with a wok, getting proper "wok hei" (searing) requires heating the wok above the smoke point of vegetable oil, dry, a technique called "long yao" (video, skip to 3:22).
Classic cast-iron steak cooking uses a similar technique, heating the pan to 250 °C/500
°F before adding the oil or meat.
When cooking with butter as your fat (or a few other low-temperature oils like unrefined coconut oil), the burning point of the fat is sometimes a lower temperature than you want to cook at.
If so, the only way to get the pan hot enough is to preheat at dry plan, add the butter or fat, and then quickly add the food before the butter burns.
Neither of these cases has anything to do with preventing sticking, though.
They are both about not burning the cooking fat.
And the first technique only makes sense if you are using cast iron or carbon steel; it can damage other types of cookware.
You might ask: doesn't this apply to cooking sofrito, though?
And the answer is no.
Filtered olive oil has a smoke point of 210 °C, which is plenty hot enough for the very wet ingredients in a sofrito, which will drag the real pan temperature down to 105 °C or so in a few seconds anyway.
Further, a sofrito is made up entirely of non-starchy vegetables and aromatics, which means that sticking isn't a serious concern.
So, myth busted!
cooking.stackexchange.com/users/7180/FuzzyChef
Regarding the (mis)conception that heating the pan will close its microfissures so micropieces of food will not fall into the small holes sticking to them: wrong.
Check the response to the more general problem of thermal expansion of a solid with a hole https://physics.stackexchange.com/questions/12599/will-a-hole-cut-into-a-metal-disk-expand-or-shrink-when-the-disc-is-heated
The only meaningful reason to heat the pan before the oil is to dry the pan, so the water droplets will not mix with the oil, then starting splattering around hot oil drops when the water-oil mixture gets heated to T>100C.As @MaxW
in the comments noted, a towel would do the same.
cooking.stackexchange.com/users/76053/EarlGrey
Recipes often call for a warm up for a reason similar to preheating an oven.
The recipe author has no idea how heavy you pan is.
What the author does know is that for just about any hot pan, 2Tbs olive oil will heat within a few seconds, where you can saute or whatever for a specified duration.
cooking.stackexchange.com/users/76064/Stuart W
Samin Nosrat writes in her book Salt Fat Acid Heat: Preheat the pan to reduce the amount of time fat spends in direct contact with the hot metal, minimizing opportunity for it to deteriorate.
As oil is heated, it breaks down, leading to flavor degradation and the release of toxic chemicals.
Food is also more likely to stick to a cold pan—another reason to preheat.
But exceptions to the preheating rule exist: butter and garlic.
Both will burn if the pan is too hot, so you must heat them gently.
In all other cooking, preheat the pan and then add the fat, letting it too heat up before adding any other ingredients.
For a heavy pan and an underpowered stove, the difference can be few minutes versus few seconds for fat at gradually rising temperature.
How much of a difference this makes depends on the oil, but various processes (e.g. cis-trans isomerization) involved in burning fat vary their speed with temperature,
so longer time spent in the let's say range of 180-200°C really results in more degradation.
Source: my wife's a chemist
cooking.stackexchange.com/users/76143/chandp
The major reason I can think of for adding oil to a pan after it is hot is safety: if you are heating a pan of oil and then forget it could start a pan fire.
If you add the oil only when you are ready to cook you don't have that risk.
I often add the oil when I first heat the pan because I can watch the oil and I can tell when it's hot by looking at it, but then sometimes I heat the pan dry and use the back of my hand to test for heat.
Either method works just fine.
cooking.stackexchange.com/users/19707/GdD
In the Netflix documentary  Salt Fat Acid Heat , Samin Nosrat says this when she is making sofrito and she is about to put olive oil into the pan:   This is one of those important things that I think home cooks always  forget, is how important it is to pre-heat the pan. You have to heat  the pan before you heat the oil.   Why do you need to heat the pan before putting the oil in?
Why do you need to heat the pan before heating the olive oil?
cooking.stackexchange.com
<olive-oil><heat>
cooking.stackexchange.com/questions/99543
cooking.stackexchange.com/users/68445/Josh Withee
Preheating the pan before adding oil is sometimes thought to prevent the food from sticking, but this is not true. In some cases, it can be useful as a way to limit the oil's exposure to heat and the pan, or to dry out the pan completely before oil is added. There are widely different on views on the pros and cons of preheating a pan before adding the oil. Overall, there are some occasions when it seems necessary, like wok frying, ensuring there is no water in the pan and preventing the oil from deteriorating. Otherwise it is unnecessary and not recommended for butter and garlic.
There is no need to heat the pan before adding the oil. You need to heat the pan before adding the oil when you want the heat of the pan to be higher than the smoke point of the oil. The only reason for preheating the pan is to dry it. Preheating the pan helps to prevent the oil from deteriorating. Food sticks to a cold pan. Do not preheat the pan when using butter and garlic.