Intertextuality

See here for a brief explanation. Famous examples include Jean Rhys's Wide Sargasso Sea and Tom Stoppard's Rosencrantz and Guildenstern Are Dead.