Claim: David Koepp writes.

Secret Window is a 2004 American psychological thriller film starring Johnny Depp and John Turturro . It was written and directed by David Koepp , based on the novella Secret Window , Secret Garden by Stephen King , featuring a musical score by Philip Glass and Geoff Zanelli . The story appeared in King 's collection Four Past Midnight . The film was released on March 12 , 2004 , by Columbia Pictures ; it was a moderate box office success and received mixed reviews from critics .