Yes, you can use an urban planter box indoors near a window, but it works best when you treat it as a small indoor garden rather than an outdoor container brought inside. The window is your main light source, so check how much sun the spot receives. A south- or west-facing window may be bright and warm; an east-facing window offers gentler morning light; a north-facing window is usually suitable only for low-light plants. Watch for cold drafts in winter and strong heat in summer, because both can stress plants even when the light looks good.
Choose a planter box that fits the space and is easy to move. A long, heavy box can be difficult to lift, damage the floor, or block a window, radiator, or vent. Smaller boxes with casters, a waterproof liner, and a deep drip tray are more practical indoors. Make sure the box has drainage holes and that water never sits against the floor or windowsill. Use a lightweight potting mix rather than garden soil; it holds moisture without becoming excessively heavy, and it gives roots better airflow.
Plant choice matters as much as location. Near a bright window, herbs, lettuce, compact flowers, and some succulents can do well. In lower light, choose shade-tolerant plants such as pothos, snake plant, or peace lily. Do not overcrowd the box, and rotate it every week or two so plants grow evenly toward the light. Keep leaves from touching hot glass, and leave a little space between the box and the window so air can circulate. Water carefully, check moisture before adding more, and empty the tray so mold and pests do not become a problem. With the right box, soil, drainage, and plants, an urban planter box can be a handsome and useful indoor feature near a window.