Quantum many-body physics with ultracold polar molecules: Nanostructured potential barriers and interactions