Detection Engine capabilities in OpenSearch

I am trying to build a component with custom logic for detection engine and use OpenSearch as my data source. Is it possible to do so? Are there any limitations in OpenSearch which will not support such functionality? Can we build our own detection engine on top of their own engine? Is it possible to disable their functionality?

Any updates on this?