Site icon Hip-Hop Website Design and Development

How to programmatically add a custom template that appears in Site Editor from a plugin?

I’m trying to add custom template for FSE from a plugin, but I have no idea how to do it.

I want to make a template for custom post type. that can be edit it from Site Editor.