For years, a professor has assigned her students to spend three hours with an artwork. A reporter tried this “immersive attention” experiment with a Velázquez masterpiece.