A short time after Boohemoth starts chasing you, you'll find a blue/purple block that moves left and right. Jump on it and wait until it is all the way to
New Super Mario Bros. 2 Part 19: World 2-Ghost House (Secret Exit)
New Super Mario Bros. 2 - Secret Exit Guide - World 2-Haunted House - Walkthrough
Secret Exit Guide - New Super Mario 2 Guide - IGN
New Super Mario Bros. - Super Mario Wiki, the Mario encyclopedia
World 3-Ghost House - New Super Mario 2 Guide - IGN
World 2 Star Coins - New Super Mario 2 Guide - IGN
New Super Mario Bros. 2 - Secret Exit Guide - World 2-Haunted House - IGN
New Super Mario Bros. 2 - Secret Exit Guide - World 6-Haunted House
Sparkling Waters-Ghost House Haunted Shipwreck - New Super Mario U Guide - IGN
World 2-Haunted House - New Super Mario 2 Guide - IGN
Super Mario Bros. Wonder: all secret exits
Super Mario 2 Guide - IGN
World 6-Ghost House - New Super Mario 2 Guide - IGN
Super Mario Maker to come with 100 on-disk levels : r/Games
World Flower-Ghost House - New Super Mario 2 Guide - IGN