Accordion headers

I want to have an accordion where the opened header and closed header is the same, can i do something to match always the haders or just to have one header idk

For now im trying to insert things inside the closed header and its ok, but when i try to insert things inside opened header it just cant let me do anything. Is this a bug?

Also if i have like a button inside the closed accordion header, how do i do so when i click inside the button it doesnt open the accordion?

For some reason it started to work and im now able to put things inside opened header too, but i didnt find how to make only one header for open and close, both equals.

Also when i put for example one modal trigger inside the header, it doesnt work and stay getting like im clicking inside the header to open and close the accordion