Animation editor in external window with keypress

i’d like to place the animation editor window in a gui window. How can i implement that?