The remains of the girl, believed to be Megan Louise Bills, 17, were found in a double wardrobe which was "wrapped in cling film", Dudley magistrates heard.
Ashley Foster, 24, of no fixed address, was not asked to enter a plea to a charge of preventing the lawful and decent burial.
He was remanded in custody to appear at Wolverhampton Crown Court on 5 June.
For more on this and other West Midlands news
The body was found in Highgate Road, Brierley Hill, on Thursday.
Maxine Jarrousse-Jones, prosecuting, said: "The wardrobe was opened and a young female was found inside, deceased, and had been there a considerable amount of time - at least a couple of weeks."
Megan's family said they were "devastated by the loss".
In a statement released by police, Megan's family said: "Whilst nothing can fill the huge gap in our family life that Megan's passing has left, we trust that in time we will have answers that will help us understand why this dreadful event has occurred."
Formal identification has yet to take place, West Midlands Police said.
A man has appeared in court charged with preventing the burial of a teenage girl found dead in the West Midlands.