Sugar has the least satiety of any of the macros (protein has the highest satiety) so if you’re looking to simply pack in calories, sugar sweetened beverages are good (I saw an interesting study that discovered that carbonation increases ghrelin response, so most soda will give you a twofer).
Something like a donut (sugar and fat in combination has been shown to be particularly obesogenic) and you can get some of the hyperpalatability effect.
Kevin Hall recently published a study showing ultra-processed food increased ad libitum food intake by about 500 calories per day: https://www.cell.com/cell-metabolism/pdf/S1550-4131(19)30248...
Also eating/snacking throughout the day will keep insulin high and increase hunger signals and driver fat storage in your body as a result.
Of course, this basically sums up the Standard American Diet and explains why most people have the problem of putting too much weight on.
Also, as a caveat to all these “interventions,” while they are effective for weight gain, they are almost all also generally terrible for your metabolic health, and will drive MetS, diabetes, CVD, cancer, etc (basically the things killing everyone eating the SAD).
That's actually part of Mark Rippetoe's bulking diet. It's apparently the best combination of calorie density and beneficial nutrients. There's a section on diet on Starting Strength, if you are interested.
Believe it or not, for me, low appetite is often goes hand in hand with not getting enough salt. I have found that I can fix low appetite by getting more salt.
I don't know the exact mechanism, but I suspect the Chloride part of Sodium Chloride contributes to the Chloride part of Hydrochloric acid in my stomach.
I've had to resort to body builders weight gainer which is mostly sugar, protein and dairy as I seem to be able to tolerate that OK.
Is there a relatively easy way to boost one's appetite? Drinking a gallon of full fat milk a day on top of one's usual meals is the easiest option I have found, but even that is a lot of hard work.