You likely mean The Skeleton Key (2005), but Owen Wilson is not in it. The male lead is John Cusack.
Kate Hudson plays Caroline Ellis, a nurse uncovering supernatural mystery in a New Orleans mansion.