Using the [details=Summary]This text will be hidden[/details] in a private message results in the Summary drop down appearing correctly, but the hidden text appearing immediately below, and not hidden as it would be in a topic post.
It does, however, work in the markup editor when you are writing the message.
Finally, you can use the following form to encapsulate longer examples or inclusions to make the discussion easier to follow.
Typing this:
`[details=Summary]This text will be hidden[/details]`
Results in this:
[details=Summary]This text will be hidden[/details]