Not a typical use case. Typically images and videos are stored in the DAM. However - there is nothing preventing you from storing HTML files in the DAM and have a component read the HTML located in a file and render it. Just a very unusual use case.
How can i do it if i have to get the code from inside a component and make it draggable. So far i've tried to acces the html properties using ResourceResolver without success.