Demo
You can use NgOverlayContainer with either a template, a component or just with a plain text.
You can return data from the embedded component to the parent. Returned value from component:
Common positions
400px
300px
center
bottom
center
top
0
10
true
cdk-overlay-transparent-backdrop
false
false
true
false