There is no specific limit on how far a roof box can overhang the front of the windscreen, provided it is fitted correctly and securely to the roof bars.
However, you should ensure that the roof box does not obstruct your view of the road or interfere with the operation of the vehicle. The box will generally sit high enough that you won't be able to see it from the driver's seat.
Always check the vehicle and roof bar manufacturers' fitting instructions and ensure that the roof box is positioned within the permitted load limits.