Can I apply heat to an eyelid abscess?

It cannot. It is possible to apply hot compresses locally before the formation of an abscess, while once an abscess is formed it is not possible to apply hot compresses.