So, say you are a wizard 15/warlock 2. You have the Lance of Lethargy invocation, which pushes an enemy you target with eldritch blast and hit back 10 feet. Say you put a demiplane entrance ~5 feet behind the enemy you target with it. When you hit, you throw the enemy in. Before all this, you had put a Glyph of Warding in there on one of the surfaces. What would be the limit to the trigger for this? Would it be forced to be touch or proximity, or could you base it off something like hostility towards the caster?
... When you cast this spell, you inscribe a glyph that later unleashes a magical effect ... You decide what triggers the glyph when you cast the spell. For glyphs inscribed on a surface, the most typical triggers include touching or standing on the glyph, ... (PHB 245)
The key word here is "typical". Based on Google's definition, the informal definition of "typical" is
showing the characteristics expected of or popularly associated with a particular person, situation, or thing.
This means, if my assumption is true, that the triggers in the PHB are only the most common ones. Other than the one about being forcibly at maximum 10 feet in diameter in the PHB, I cannot see a limit. Though I probably should assume this would all be DM discretion, (and I know that I sound like a broken record here) but could the trigger be hostility toward the caster, or something else, like being a specific race, gender, from a specific place, etc., or would it be forced to being something from the PHB?