How to create a hook from a plugin

I hoped there is a way to create a custom event (like in the link to the docs above), but I couldn’t find anything. Hooking to the update content type lifecycle is enough for my case, It just feels like a workaround