How to detect draft topic via webhooks?

When a shared draft is created, the category_id will be set to the ID of the shared drafts category. You could try checking the category_id and then not publishing the topic if it comes from your shared drafts category.